/*
 * IntMatrix.h
 *
 *  Created on: Feb 28, 2011
 *      Author: santiago
 */

#ifndef INTMATRIX_H_
#define INTMATRIX_H_

#include <vector>

using namespace std;

class IntMatrix {
public:
	IntMatrix(unsigned int size);
	virtual ~IntMatrix();

	int get(unsigned int i, unsigned int j);
	void set(unsigned int i, unsigned int j, int value);
	int size() const;
private:
	unsigned int _size;
	vector<vector<int> > _matrix;

	void convert_to_matrix(unsigned int i, unsigned int j,
			unsigned int &first_index, unsigned int &second_index) const;
};

#endif /* INTMATRIX_H_ */
